import config from "@/config"
import http from "@/utils/request"

export default {
    // 采购
    purchase: {
        //采购计划
        plan:{
            list: {
                url: `${config.API_URL}/adminapi/purchase.PurchasePlan/lists`,
                name: "获取采购计划列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            goodsLists: {
                url: `${config.API_URL}/adminapi/purchase.purchasePlan/goodsLists`,
                name: "获取采购计划商品明细",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/purchase.PurchasePlan/edit`,
                name: "修改采购计划",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/purchase.PurchasePlan/add`,
                name: "添加采购计划",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/purchase.PurchasePlan/delete`,
                name: "删除采购计划",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/purchase.PurchasePlan/detail`,
                name: "采购计划详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            shop: {
                url: `${config.API_URL}/adminapi/purchase.PurchasePlan/all`,
                name: "采购计划商品",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            check: {
                url: `${config.API_URL}/adminapi/purchase.PurchasePlan/checkStatus`,
                name: "采购计划 审核",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            uncheck: {
                url: `${config.API_URL}/adminapi/purchase.PurchasePlan/uncheckStatus`,
                name: "采购计划 反审核",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            complate: {
                url: `${config.API_URL}/adminapi/purchase.PurchasePlan/complate`,
                name: "采购计划 完成",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        //采购单
        order:{
            list: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/lists`,
                name: "获取采购单列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            all: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/all`,
                name: "获取采购单列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            goodsLists: {
                url: `${config.API_URL}/adminapi/purchase.purchase/goodsLists`,
                name: "获取采购单列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/edit`,
                name: "修改采购单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/add`,
                name: "添加采购单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/delete`,
                name: "删除采购单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            check: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/checkStatus`,
                name: "采购单 审核",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            freeze: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/freeze`,
                name: "采购单 冻结/反冻结",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            uncheck: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/uncheckStatus`,
                name: "采购单 反审核",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/detail`,
                name: "采购单详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            shop: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/all`,
                name: "采购单商品",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            look: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/lookLists`,
                name: "查看的业务员",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            remark: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/updateRemark`,
                name: "采购单 备注",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            print_settle: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/orderPrint`,
                name: "采购单 打印",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            complate: {
                url: `${config.API_URL}/adminapi/purchase.Purchase/complate`,
                name: "采购计划 完成",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        // 入库单
        house:{
            list: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/lists`,
                name: "获取入库单列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/add`,
                name: "添加入库单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/edit`,
                name: "修改入库单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/delete`,
                name: "删除入库单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/detail`,
                name: "入库单详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            check: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/checkStatus`,
                name: "入库单 审核",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            get_meters: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/getMeters`,
                name: "码单",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            set_meters: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/setMeters`,
                name: "入库单 设置码单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            get_all_meters: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/getAllMeters`,
                name: "入库单 获取全部码单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            complate: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/complate`,
                name: "入库单 完成",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        // 调拨
        diaobo:{
            list: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/lists`,
                name: "获取调拨单列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/add`,
                name: "添加调拨单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/edit`,
                name: "修改调拨单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/delete`,
                name: "删除调拨单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/detail`,
                name: "调拨单详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            get_detail: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/selectDetail`,
                name: "调拨单详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            check: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/checkStatus`,
                name: "调拨单 审核",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
    },
    // 染整
    dye: {
        // 染色单
        order: {
            list: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseDye/lists`,
                name: "获取染色单列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseDye/add`,
                name: "添加染色单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseDye/edit`,
                name: "修改染色单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseDye/delete`,
                name: "删除染色单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseDye/detail`,
                name: "染色单详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            get_can_color: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseDye/showDetailsWithCanProcessNumber`,
                name: "获取可添加的色号",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            check: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseDye/checkStatus`,
                name: "染色单审核",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            complate: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseDye/complate`,
                name: "染色单 完成",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            remark: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseDye/updateRemark`,
                name: "染色单 备注",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        // 入库单
        house:{
            list: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/lists`,
                name: "获取入库单列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/add`,
                name: "添加入库单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/edit`,
                name: "修改入库单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/delete`,
                name: "删除入库单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/detail`,
                name: "入库单详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            check: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/checkStatus`,
                name: "入库单 审核",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            get_meters: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/getMeters`,
                name: "码单",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            set_meters: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/setMeters`,
                name: "入库单 设置码单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            get_all_meters: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/getAllMeters`,
                name: "入库单 获取全部码单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            complate: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/complate`,
                name: "入库单 完成",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
    },
    // 加工
    machining: {
        // 加工单
        order: {
            list: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseProcess/lists`,
                name: "获取加工单列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseProcess/add`,
                name: "添加加工单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseProcess/edit`,
                name: "修改加工单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseProcess/delete`,
                name: "删除加工单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseProcess/detail`,
                name: "加工单详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            get_can_color: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseProcess/showDetailsWithCanProcessNumber`,
                name: "获取可添加的色号",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            check: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseProcess/checkStatus`,
                name: "加工单审核",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            complate: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseProcess/complate`,
                name: "加工单 完成",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            remark: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseProcess/updateRemark`,
                name: "加工单 备注",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        // 入库单
        house:{
            list: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/lists`,
                name: "获取入库单列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/add`,
                name: "添加入库单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/edit`,
                name: "修改入库单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/delete`,
                name: "删除入库单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/detail`,
                name: "入库单详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            check: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/checkStatus`,
                name: "入库单 审核",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            get_meters: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/getMeters`,
                name: "码单",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            set_meters: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/setMeters`,
                name: "入库单 设置码单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            get_all_meters: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/getAllMeters`,
                name: "入库单 获取全部码单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            complate: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseWare/complate`,
                name: "入库单 完成",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
    },
    // 检验
    inspect: {
        // 检验单
        order: {
            list: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseTest/lists`,
                name: "获取检验单列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseTest/add`,
                name: "添加检验单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseTest/edit`,
                name: "修改检验单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseTest/delete`,
                name: "删除检验单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseTest/detail`,
                name: "检验单详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            print: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseTest/showWareDetailsPrint`,
                name: "打印检验单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            complate: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseTest/update_complate`,
                name: "完成检验单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        execute: {
            list: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseInspect/lists`,
                name: "检验数据",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseInspect/add`,
                name: "开始检验 -- 提交数据",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseInspect/edit`,
                name: "开始检验 -- 提交数据",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseInspect/delete`,
                name: "开始检验 -- 提交数据",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseInspect/detail`,
                name: "退货单详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            print: {
                url: `${config.API_URL}/adminapi/purchase.PurchaseInspect/detailPrint`,
                name: "退货单详情",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        start_end_machine: {
            url: `${config.API_URL}/adminapi/base.Machine/updateStatus`,
            name: "开始/结束检验 -- 启动/结束设备",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        output: {
            url: `${config.API_URL}/adminapi/purchase.PurchaseInspect/dateTotalPrint`,
            name: "检验输出列表",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
    },
    // 销售
    sale: {
        list: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/lists`,
            name: "获取销售单列表",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        shopList:{
            url: `${config.API_URL}/adminapi/shop.contractOrder/goodsLists`,
			name: "获取销售单下的商品",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
        },
        shop_import: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/import_order_goods`,
            name: "导入销售明细",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        add: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/add`,
            name: "添加销售单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        edit: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/edit`,
            name: "修改销售单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        delete: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/delete`,
            name: "删除销售单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        detail: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/detail`,
            name: "销售单详情",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        // 扫码获取数据
        scan: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/searchRollCode`,
            name: "扫码获取数据",
            get: async function(params){
                return await http.get(this.url, params);
            }
        },
        check: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/checkStatus`,
            name: "审核销售单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        uncheck: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/uncheckStatus`,
            name: "反审核销售单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        updateFields: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/updateFields`,
            name: "修改销售单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        updateFieldsdetail: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/updateDetailFields`,
            name: "修改发货详情字段",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        import: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/import`,
            name: "销售导入",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        daySummary: {
            // url: `${config.API_URL}/adminapi/shop.ContractOrder/dateSalesPrint`,
            url: `${config.API_URL}/adminapi/base.Account/getDailyReport`,
            name: "每日小结",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        detail_static: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/getReportByChecker`,
            name: "销售小结",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },

        saleTotalData: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/getOrderTotalData`,
            name: "销售汇总 -- 数据",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        saleTotal: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/getOrderTotal`,
            name: "销售汇总",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },

        saleAveragePriceData: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/getOrderAverageData`,
            name: "销售均价 -- 数据",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        saleAveragePrice: {
            url: `${config.API_URL}/adminapi/shop.ContractOrder/getOrderAverage`,
            name: "销售均价",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },

    },
    // 退货
    return: {
        list: {
            url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/lists`,
            name: "获取退货单列表",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        add: {
            url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/add`,
            name: "添加退货单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        edit: {
            url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/edit`,
            name: "修改退货单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        delete: {
            url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/delete`,
            name: "删除退货单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        detail: {
            url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/detail`,
            name: "退货单详情",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        // 扫码获取数据
        scan: {
            url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/searchRollCode`,
            name: "扫码获取数据",
            get: async function(params){
                return await http.get(this.url, params);
            }
        },
        check: {
            url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/checkStatus`,
            name: "审核退货单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        updateFields: {
            url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/updateFields`,
            name: "修改退货单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        updateFieldsdetail: {
            url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/updateDetailFields`,
            name: "修改发货详情字段",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
    },
    // 提货
    pick: {
        list: {
            url: `${config.API_URL}/adminapi/base.Tihuo/lists`,
            name: "获取销售提货",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        add: {
            url: `${config.API_URL}/adminapi/base.Tihuo/add`,
            name: "添加销售提货",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        edit: {
            url: `${config.API_URL}/adminapi/base.Tihuo/edit`,
            name: "修改销售提货",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        delete: {
            url: `${config.API_URL}/adminapi/base.Tihuo/delete`,
            name: "删除销售提货",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
    },

    // 账单
    finance: {
        // 收款
        collect: {
            add: {
                url: `${config.API_URL}/adminapi/shop.ShopCustomer/receivedPay`,
                name: "收款新增",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            record: { 
                url: `${config.API_URL}/adminapi/base.AccountLog/lists`,
                name: "收款单列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            recorddel: {
                url: `${config.API_URL}/adminapi/base.AccountLog/delete`,
                name: "收款删除",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            print: {
                url: `${config.API_URL}/adminapi/base.AccountLog/getIncomeAndExpense`,
                name: "收款打印",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        // 流水记录
        record: {
            import: {
                url: `${config.API_URL}/adminapi/base.AccountLog/import`,
                name: "流水记录导入",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        // 其他收支
        other: {
            list: {
                url: `${config.API_URL}/adminapi/base.Account/inOrOut/lists`,
                name: "其他收支列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/base.Account/inOrOut`,
                name: "其他收支新增",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/base.Account/inOrOutEdit`,
                name: "其他收支编辑",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/base.Account/inOrOutDelete`,
                name: "其他收支删除",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        // 回款
        return: {
            list: {
                url: `${config.API_URL}/adminapi/base.AccountSend//lists`,
                name: "回款列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/base.AccountSend/add`,
                name: "回款新增",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/base.AccountSend/edit`,
                name: "回款编辑",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/base.AccountSend/delete`,
                name: "回款删除",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/base.AccountSend/detail`,
                name: "回款单详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            update: {
                url: `${config.API_URL}/adminapi/base.AccountSend/updateStatus`,
                name: "回款状态更新",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
    },

    // 每日汇率
    rate: {
        list: {
            url: `${config.API_URL}/adminapi/base.Rate/lists`,
            name: "每日汇率列表",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        add: {
            url: `${config.API_URL}/adminapi/base.Rate/add`,
            name: "每日汇率新增",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        edit: {
            url: `${config.API_URL}/adminapi/base.Rate/edit`,
            name: "每日汇率编辑",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        delete: {
            url: `${config.API_URL}/adminapi/base.Rate/delete`,
            name: "每日汇率删除",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
    },
}